<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <p>查看浏览器是否支持脚本</p>
    <script type="text/javascript">
        document.write("Hello World!")
    </script>
    <noscript>Your browser does not support JavaScript!</noscript>
    <hr />
    <p>兼容老浏览器。避免 script 标签所包含的内容将以文本方式显示在页面</p>
    <script type="text/javascript">
        <!--
        document.write("Hello World 2!")
        //-->
    </script>
    <script type="text/vbscript">
        <!--
        document.write("Hello World 3!")
        '-->
    </script>
</body>

</html>